package top.ooyyh.bytheway.model.vo;

import lombok.Data;
import top.ooyyh.bytheway.entity.User;

@Data
public class UserVo {
    private String id;
    private String username;
    private String password;
    private String token;
    public static UserVo fromUser(User user) {
        UserVo userVo = new UserVo();
        userVo.id = user.getId();
        userVo.username = user.getUsername();
        userVo.password = user.getPassword();
        return userVo;
    }
}
